<template>
  <div class="merchantSettled">
    <div class="mer-chant-header">
      <div class="content">
        <div class="content-text">
          <p class="title">
            {{ $t('送货及取货') }}
          </p>
        </div>
      </div>
      <img src="@/assets/image/banner.jpg" class="bg-image"  alt=""/>
    </div>
    <div class="merchantSettled-wap">
      <div class="step-div">
        <div class="content">
          <div>
            <div class="title">{{ $t("delivery_q1") }}</div>
            <p>
              {{ $t("delivery_d1",{num: itemname !== 'INT Overstock'?'112':'180'}) }}
            </p>
          </div>
          <div>
            <h2 class="title">{{ $t("delivery_q2") }}</h2>
            <p v-if="itemname !== 'INT Overstock'">
              {{ $t("delivery_d2", { name: itemname }) }}
            </p>
            <p v-else>
              {{ $t("delivery_d2_Int") }}
            </p>
            <p>
              {{ $t("delivery_d2_1") }}
            </p>
            <p v-if="itemname !== 'INT Overstock'">
              {{ $t("delivery_d2_2") }}
            </p>
            <p v-else>
              {{ $t("delivery_d2_2_int") }}
            </p>
            <p>
              {{ $t("delivery_d2_3") }}
            </p>
          </div>
          <div>
            <h2 class="title">{{ $t("delivery_tit") }}</h2>
            <p class="" style="font-weight: 600">{{ $t("delivery_q3") }}</p>
            <p>
              {{ $t("delivery_d3") }}
            </p>
            <p class="" style="font-weight: 600">{{ $t("delivery_q4") }}</p>
            <p>
              {{ $t("delivery_d4") }}
            </p>
            <p class="" style="font-weight: 600">{{ $t("delivery_q5") }}</p>
            <p>
              {{ $t("delivery_d5") }}
            </p>
            <p class="" style="font-weight: 600">{{ $t("delivery_q6") }}</p>
            <p>
              {{ $t("delivery_d6") }}
            </p>
            <p>
              {{ $t("delivery_d7") }}
            </p>
          </div>
        </div>
      </div>
    </div>
    <Footer />
  </div>
</template>

<script>
export default {
  name: "Delivery",
  data() {
    return {
      itemname:
        process.env.VUE_APP_ITEM_NAME == "Mbuy"
          ? "Argos"
          : process.env.VUE_APP_ITEM_NAME,
    }
  }
}
</script>

<style scoped lang="scss">
html[dir="rtl"]{
  @media screen and (max-width: 500px){
    .mer-chant-header .content .content-text{
      left: auto;
    }
  }
}
.mer-chant-header {
  font-size: 14Px;
  background: transparent;
  position: relative;
  min-height: 440Px;

  .bg-image {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  .content {
    width: 1200Px;
    height: 420Px;
    margin: 0 auto;
    position: absolute;
    padding-bottom: 100Px;
    left: 50% !important;
    transform: translateX(-50%);

    img {
      width: 100%;
    }

    .content-text {
      width: 58%;
      position: absolute;
      top: 12%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;

      p {
        width: 100%;
        font-size: 20Px;
        color: rgba(166, 166, 166, 1);
      }

      .title {
        color: var(--main-color);
        font-size: 48Px;
        margin-bottom: 4Px;
        margin-top: 30px;
      }
    }
  }
}
.merchantSettled-wap {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1200px;
  margin: 0 auto 20px auto;

  .step-div {
    width: 1197px;
    background: #fff;

    border-radius: 4px;
    margin-top: -86px;

    .content {
      padding: 20px 30px;
      border: 1px solid #eeeeee;
      h2 {
        margin-top: 14px;
      }
      .title {
        font-size: 24px;
        color: #0f1111;
        font-weight: 500;
        margin-bottom: 14px;
      }
      .ask {
        color: dodgerblue;
      }
      p,
      ul li {
        font-family: "PingFang HK";
        font-style: normal;
        font-size: 14px;
        line-height: 20px;
        color: #333333;
        padding: 6px 0;
        list-style-type: disc;
      }
    }

    .bottom {
      height: 140px;
      font-size: 14px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      margin: 20px 0;

      .button {
        width: 475px;
      }
    }
  }
}

@media screen and (max-width: 500px) {
  .mer-chant-header {
    min-width: 100% !important;
    background: #212121;
    font-size: 14px;
    position: relative;
    height: 380px;

    .bg-image {
      position: absolute;
      width: 180%;
      height: 100%;
      z-index: 0;
      top: 0;
      right: 0;
      object-fit: cover;
    }

    .content {
      width: 100% !important;
      margin: 0 auto;
      position: relative;
      z-index: 4;
      padding: 0 15px;
      height: auto;

      img {
        width: 100%;
      }

      .content-text {
        width: 58%;
        position: absolute;
        top: 0;
        left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;

        p {
          width: 100%;
          font-size: 12px;
          color: rgba(166, 166, 166, 1);
        }

        .title {
          color: var(--main-color);
          font-size: 14px;
        }
      }
    }
  }
  .merchantSettled {
    width: 100%;
    overflow: hidden;
    .merchantSettled-wap {
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100% !important;
      position: relative;
      .step-div {
        width: 100%;
        background: #fff;

        border-radius: 4px;
        margin-top: -86px;

        .content {
          padding: 20px 30px;
          border: 1px solid #eeeeee;

          .title p {
            font-family: "PingFang HK";
            font-style: normal;
            font-size: 14px;
            line-height: 20px;
            color: #333333;
            padding: 6px 0;
          }
        }

        .bottom {
          height: 100px;
          font-size: 12px;
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          align-items: center;
          margin: 20px 0;

          .button {
            width: 80%;
          }
        }
      }
    }
  }
}
</style>
